<?php
/**
 * Created by PhpStorm.
 * User: ls721
 * Date: 2016/10/27 0027
 * Time: 20:33
 */class Model_FirstAddTips extends PhalApi_Model_NotORM {
    public function getAllTips()
    {
        return $this->getORM()->select('id as TipId','FirstAddTips')->fetchRows();
    }

    public function getTips($tip_id)
    {
       return  $this->getORM()->select('id as TipId','FirstAddTips')->where('id',$tip_id)->fetchRows();
    }
    protected function getTableName($id) {
        return 'FirstAddTips';
    }
}